package com.yzc.rabbit;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

@Getter
public enum OrderStatus {

    status_UNPAID(1, "待支付"),
    status_PAID(2, "已支付"),
    status_CANCELED(3, "已取消");



    @EnumValue
    private final int code;
    private final String message;

    OrderStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }
}